<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [
            {
                name:"lisi",
                age:18,
                likes:["lol","足球"],
                alikes:["音乐","电影"],
                sex:"male"
            },
            {
                name:"wangwu",
                age:18,
                likes:["al","篮球"],
                alikes:["下棋","钓鱼"],
                sex:"male"
            },
            {
                name:"xiaoliu",
                age:18,
                likes:["jf","乒乓球"],
                alikes:["追剧","游泳"],
                sex:"famale"
            }
        ]
        var res = [];
        for(var i = 0;i<arr.length;i++){
            var name = arr[i].name;
            var age = arr[i].age;
            var likes = arr[i].likes.concat(arr[i].alikes);
            res.push({
                name:name,
                age:age,
                likes:likes
            })
           
        }
        console.log(res)
            
       
    </script>
</body>
</html>